// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__C07975CA_FFE8_11D7_B08F_0002553118A0__INCLUDED_)
#define AFX_MAINFRM_H__C07975CA_FFE8_11D7_B08F_0002553118A0__INCLUDED_

#include "ToolBox.h"	// Added by ClassView
#include "ColorBox.h"	// Added by ClassView
#include "BitmapMenu.h"	// Added by ClassView
#include "MyToolBar.h"
#include "CharBox.h"
#include "AnimateBar.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMainFrame : public CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:
	static CImageList m_ilToolBar;

// Operations
public:
	afx_msg BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void ActivateFrame(int nCmdShow = -1);
	virtual void GetMessageString(UINT nID, CString& rMessage) const;
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

public:  // control bar embedded members
	void SetSaveRecoverTimer(BOOL bUpdate = TRUE);
	CRect m_rectOld;
	void DrawMruCharBar();
	void AddMruChar(wchar_t wc);
	CBitmapMenu m_menu;
	wchar_t m_mruChars[20];
	void ShowControlBarPopup(CWnd *pWnd);
	CStatusBar  m_wndStatusBar;
	CMyToolBar	m_wndToolBar;
	CColorBox	m_wndColorBox;
	CMyToolBar	m_wndCharBar;
	CAnimateBar m_wndAnimateBar;
	CToolBox m_wndToolBox;
	CCharBox m_wndCharBox;
	afx_msg void OnToolbarDropDown(NMTOOLBAR* pnmtb, LRESULT *pResult);
	
// Generated message map functions
protected:
	void DockControlBarLeftOf(CControlBar* Bar, CControlBar* tbRight);
	CBitmap m_bmpMRUChars;
	CImageList m_ilMRUChars;
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
	afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
	afx_msg void OnViewCanvasMode();
	afx_msg void OnSysColorChange();
	afx_msg void OnToolbarCustomize();
	afx_msg void OnNcRButtonUp(UINT nHitTest, CPoint point);
	afx_msg void OnRunScript();
	afx_msg void OnStopScript();
	afx_msg void OnLangDefault();
	afx_msg void OnUpdateAnimatePreview(CCmdUI* pCmdUI);
	afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnViewRefresh();
	//}}AFX_MSG
	afx_msg void OnViewBars(UINT nID);
	afx_msg void OnMRUChar(UINT nID);
	afx_msg void OnUpdatePluginMenu(CCmdUI *pCmdUI);
	afx_msg void OnPluginMenu(UINT nID);
	afx_msg void OnScriptMenu(UINT nID);
	afx_msg void OnLangMenu(UINT nID);
	afx_msg void OnUpdateLangMenu(CCmdUI *pCmdUI);
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__C07975CA_FFE8_11D7_B08F_0002553118A0__INCLUDED_)
